#include <avr/io.h>
#include <util/delay.h>

#include "usart.h"
//#include "gao.h"
#include "nexa.h"

int main()
{
    usart_init();
    //gao_init();
    nexa_init();

    while(1)
    {
        unsigned char c = usart_rx();

        switch (c) 
        {
           case 'a':
                   //gao_pair();
                   nexa_pair();
                   break;
           case 'b':
                   //gao_on();
                   nexa_on();
                   break;
           case 'c':
                   //gao_off();
                   nexa_off();
                   break;
           default:
                   break;
        }

        _delay_ms(1000);
    }

    return 0;
}
